import React from 'react';
import ReactDOM from 'react-dom/client';
import App from './App';
import { BrowserRouter } from 'react-router-dom'
const root = ReactDOM.createRoot(document.getElementById('app'));
//当组件内部使用了useRoutes这个钩子，则这个组件一定需要使用BrowserRouter组件包裹起来
root.render(
    <BrowserRouter>
        <App />
    </BrowserRouter>
);

